package com.ieng.kican.modules.security.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;

@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtAuthProperties {
    private String header;
    private String prefix;
    private String secret;
    private String sessionName;
    private Duration renewal;
    private Duration expiredTime;
    private Duration freshTime;

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getSessionName() {
        return sessionName;
    }

    public void setSessionName(String sessionName) {
        this.sessionName = sessionName;
    }

    public Duration getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Duration expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Duration getFreshTime() {
        return freshTime;
    }

    public void setFreshTime(Duration freshTime) {
        this.freshTime = freshTime;
    }

    public Duration getRenewal() {
        return renewal;
    }

    public void setRenewal(Duration renewal) {
        this.renewal = renewal;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
